package day04_api_code.com.itheima.d1_stringbuilder;

public class Demo2_StringBuilder {
    public static void main(String[] args) {
//        String s = "";
//        for (int i = 0; i < 1000000; i++) {
//            s += "abc";
//        }
//        System.out.println("s = " + s);

        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 1000; i++) {
            sb.append("abc");

        }
        System.out.println("sb = " + sb);
    }



}
